import type { MockMethod } from 'vite-plugin-mock';
export default [
    {
        url: '/dev-api/wisdom-ac/user/get_info',
        method: 'get',
        response: (config) => {
            return {
                "msg": "查询登陆用户成功",
                "code": 0,
                "ds": {
                    "permissions": ["*:*:*"],
                    "userRoles":[],
                    "searchValue": null,
                    "createBy": "admin",
                    "createTime": "2021-09-09 17:25:28",
                    "updateBy": null,
                    "updateTime": null,
                    "remark": "管理员",
                    "params": {},
                    "userId": 1,
                    "deptId": 103,
                    "username": "admin",
                    "nickName": "智研",
                    "email": "ry@163.com",
                    "phonenumber": "15888888888",
                    "sex": "1",
                    "avatar": "",
                    "status": "0",
                    "delFlag": "0",
                    "loginIp": "218.75.68.35",
                    "loginDate": "2022-04-02T14:57:07.000+08:00",
                    "dept": {
                        "searchValue": null,
                        "createBy": null,
                        "createTime": null,
                        "updateBy": null,
                        "updateTime": null,
                        "remark": null,
                        "params": {},
                        "deptId": 103,
                        "parentId": 101,
                        "ancestors": null,
                        "deptName": "研发部门",
                        "orderNum": "1",
                        "leader": "智研",
                        "phone": null,
                        "email": null,
                        "status": "0",
                        "delFlag": null,
                        "parentName": null,
                        "children": []
                    },
                    "roleIds": null,
                    "postIds": null,
                    "roleId": null,
                    "admin": true
                }
            }
        }
    },
    {
        url: '/dev-api/wisdom-ac/resource/routers',
        method: 'get',
        response: (config) => {
            return {
                "msg": "查询登陆用户权限成功",
                "code": 0,
                "ds": [{
                    code:'ab-company'
                },{
                    code:'ab-staff'
                },{
                    code:'ac-user'
                },{
                    code:'ac-role'
                },{
                    code: 'ab-dept'
                }]
            }
        }
    }
] as MockMethod[];
